var app = getApp();

Page({
    data: {
    	// 模拟数据
        jianzhi_type:[],
        current: 0,
        shopPoint:[{
        	'shopname':'安徽煜景文化传媒有限公司',
        	'shoptype':'派发单页',
        	'shoptime':'2019-06-26  13:23:36',
        	'shoppoint':20
        },{
        	'shopname':'安徽煜景文化传媒有限公司',
        	'shoptype':'派发单页',
        	'shoptime':'2019-06-26  13:23:36',
        	'shoppoint':50
        },{
        	'shopname':'安徽煜景文化传媒有限公司',
        	'shoptype':'派发单页',
        	'shoptime':'2019-06-26  13:23:36',
        	'shoppoint':20
        },{
        	'shopname':'安徽煜景文化传媒有限公司',
        	'shoptype':'派发单页',
        	'shoptime':'2019-06-26  13:23:36',
        	'shoppoint':20
        }]
    },
    onLoad: function(n) {
        var self = this;
        self.getJianzhi_style();
    },
     navTab: function(a) {
        var t = this;
        // t.getform(a.detail.formId);
        var e = a.currentTarget.dataset.index,jzTypeId=a.currentTarget.dataset.typeid;
        t.setData({
            current: e
        });
        t.setData({
            current: e,
            jzTypeId:jzTypeId
        });
        app.util.request({
            url: "entry/wxapp/Top",
            data:{
                type:jzTypeId,
                openid: wx.getStorageSync("openid"),
            },
            success: function(a) {
                debugger;
                t.setData({
                    jz_user: a.data.data
                });
            }
        });
    },
   getJianzhi_style: function() {
        var i = this;
        app.util.request({
            url: "entry/wxapp/jianzhi_type",
            success: function(a) {
                i.setData({
                    jianzhi_type: a.data.data
                });
            }
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {}
});